// Author: wsfuyibing <682805@qq.com>
// Date: 2025-06-13

package session

import (
	"gitee.com/go-wares/framework-iris/framework/src/logics"
	"github.com/kataras/iris/v12"
	"server/app/http/logics/master/ticket/session/daily"
	"server/app/http/logics/master/ticket/session/info"
	"server/app/http/logics/master/ticket/session/info/record"
	"server/app/http/logics/master/ticket/session/list"
	"server/app/http/logics/master/ticket/session/update/state"
)

// Controller
// 场次操作.
//
// @Middleware("authorizer")
// @Middleware("master")
type Controller struct{}

// GetDaily
// 每日场次.
func (o *Controller) GetDaily(i iris.Context) {
	logics.Do(i, daily.New)
}

// GetInfo
// 场次详情.
func (o *Controller) GetInfo(i iris.Context) {
	logics.Do(i, info.New)
}

// GetInfoRecord
// 场次购买记录列表.
func (o *Controller) GetInfoRecord(i iris.Context) {
	logics.Do(i, record.New)
}

// GetList
// 场次列表.
func (o *Controller) GetList(i iris.Context) {
	logics.Do(i, list.New)
}

// PostUpdateState
// 更新状态.
func (o *Controller) PostUpdateState(i iris.Context) {
	logics.Do(i, state.New)
}
